#! /bin/sh

JS_DEBUGEE="$1"

if [ ! "$JS_DEBUGEE" ]; then
  echo "Usage: $0 <script.js>" >/dev/stderr
  exit 1
fi

gdb -q -x `dirname $0`/gdb-gsrdb.cmds --args gsrdb -c debugger -f $1

